#include "Rectangle.h"

Rectangle::Rectangle(unsigned long length ,unsigned long width):length(length),width(width)
{
}


long Rectangle::getLength() const
{
  return length;
}
long Rectangle::getWidth() const
{
  return width;
}
void Rectangle::setLength(unsigned long length)
{
  this->length = length;
}
void Rectangle::setWidth(unsigned long width)
{
  this ->width = width;
}
long Rectangle::getArea() const
{
  return length*width;
}

long Rectangle::getPerimeter()const
{
  return (length+width)*2;
}
